<?php
namespace app\index\controller;
use think\Db;
class Index extends Base
{
    public function index()
    {
        $data = M('LiveInfo')->where(array('status'=>'0'))->order('ctime desc')->limit(3)->select();
        return view('index',['img'=>$data]);
    }

    public function hello($name = 'ThinkPHP5')
    {
        $data = Db::query('select * from think_user');
        var_dump($data);
    }
}
